function ValidateClient()
{
	var kw = {
			form: dojo.byId("AddClient"),
			url: "/client/add/",
			load: function(data){
				if (data==1)
				{
					dojo.byId("result").innerHTML="Client details has been registered successfully. ;
					dojo.byId("FormDiv").innerHTML=""
				}
				else
				{
					dojo.byId("test").innerHTML = data;
				}
			},
			error: function(data){
				console.debug("An error occurred: ", data);
			},
			timeout: 5000,
			form: "AddClient"
	};
	dojo.xhrPost(kw); //Servlet get argement with doPost
}
}